<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //验证码服务
        $this->app->register(\Youngyezi\Captcha\CaptchaServiceProvider::class);
        $this->app->alias('captcha', 'Youngyezi\Captcha\CaptchaServiceProvider');

        //jwt token
        $this->app->register(\Tymon\JWTAuth\Providers\LumenServiceProvider::class);

        //队列服务
        $this->app->register(\Illuminate\Redis\RedisServiceProvider::class);

        //邮件服务
        $this->app->register(\Illuminate\Mail\MailServiceProvider::class);

        //export excel
        $this->app->register(\Maatwebsite\Excel\ExcelServiceProvider::class);

        //qrcode
        $this->app->register(\SimpleSoftwareIO\QrCode\QrCodeServiceProvider::class);
        $this->app->alias('QrCode', 'SimpleSoftwareIO\QrCode\Facades\QrCode::class');
    }
}
